package cn.tedu.egweibo05.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class UserDTO {
    @ApiModelProperty(value = "用户昵称",required = true)
    @NotBlank(message = "用户昵称不能为空")
    private String nickname;
    @ApiModelProperty(value = "用户密码",required = true)
    @Size(min=6,max=18,message = "密码长度必须为6-18位")
    private String password;
    @ApiModelProperty(value = "用户账号",required = true)
    @NotBlank(message = "用户名不能为空")
    private String username;
}
